import axios, { Axios } from 'axios'
const context = '/recipeservice'

/**
 * 获取 Materialusageconfig 分页列表
 */
export function getMaterialusageconfigPagination(data: any) {
  return axios.get(`${context}/materialusageconfig/pagination`, {
    params: data,
  })
}

/**
 * 获取 Materialusageconfig 所有数据
 */
export function getMaterialusageconfigAllList(data: any) {
  return axios.get(`${context}/materialusageconfig/all`, { params: data })
}

/**
 * 获取 Materialusageconfig 详情
 */
export function getMaterialusageconfigDetailById(id: any) {
  return axios.get(`${context}/materialusageconfig/${id}`, { params: { id } })
}

/**
 * 新增 Materialusageconfig
 */
export function addMaterialusageconfig(data: any) {
  return axios.post(`${context}/materialusageconfig`, data)
}

/**
 * 修改 Materialusageconfig
 */
export function updateMaterialusageconfig(data: any) {
  return axios.put(`${context}/materialusageconfig`, data)
}

/**
 * 删除 Materialusageconfig
 */
export function batchRemoveMaterialusageconfig(data: any) {
  return axios.post(`${context}/materialusageconfig/batchRemove`, data)
}
